SftTree/OCX 7.0

SftTree.ItemClickAgain Event

Softel vdm, Inc.

An already selected item has been clicked.

Syntax       

VB.NET

Private Sub object_ItemClickAgain(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ItemClickAgain

VB

Private Sub object_ItemClickAgain(ByVal ItemIndex As Long, ByVal ColIndex As Integer, ByVal Button As Integer)

C#.NET

void object_ItemClickAgain(object sender, EventArgumentType e);

VC++

void OnItemClickAgainobject(long ItemIndex, short ColIndex, short Button);

C

HRESULT OnItemClickAgainobject(long ItemIndex, short ColIndex, short Button);

Delphi

procedure objectItemClickAgain(Sender: TObject; ItemIndex : Integer; ColIndex : Smallint; Button : Smallint);

object

A SftTree object.

ItemIndex

The zero-based index of the item at the mouse-cursor location when the mouse button was clicked.

ColIndex

The column number of the cell at the mouse-cursor location when the mouse button was clicked.

Button

The button that is pressed during the event (see SftTreeButtonConstants).  The button argument is a bit field with bits corresponding to the left button, right button and middle button.  These bits correspond to the values shown below.  Only one of the bits is set, indicating the button that caused the event.

Button

Value

Description

constSftTreeLeftButton

1

The left mouse button was pressed.

constSftTreeRightButton 1)

2

The right mouse button was pressed.

constSftTreeMiddleButton 1)

4

The middle mouse button was pressed.

Comments

The ItemClickAgain event occurs when an already selected item has been clicked.

1) Depending on the settings of the LeftButtonOnly or LeftItemClickOnly properties, this event may not be generated for the middle and right mouse buttons.

The ItemClickAgain event is generated when the user clicks on an already selected item.  The event is only generated if there is a sufficiently long pause between the first click to select the item and the second click.  If the pause is not long enough, the ItemDblClick event is generated instead.

The ItemClickAgain event supplies all the necessary information to the application, so appropriate action can be taken, such as to start cell editing.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com